package com.xinghou.platform.lucene.main;

import com.xinghou.platform.model.main.SharedCard;
import com.xinghou.platform.model.main.SharedCardQueryParam;

import java.io.IOException;
import java.util.List;

/**
 * 发布卡信息检索
 * @author xuzhen
 *
 */
public interface SharedCardLuceneService {

	public List<SharedCard> getSearchSharedCards(String key, int fromno, int pagesize) throws IOException;
	
	public List<SharedCard> getSearchSharedCardsbyGeo(String key, int fromno, int pagesize, double lat, double lng)throws IOException;

	public List<SharedCard> getSearchSharedCardsbyGeo(String key, int fromno, int pagesize, Double distince, double lat, double lng)throws IOException;
	
	public int saveSharedCard(SharedCard sharedCard);

	public List<SharedCard> queryBySharedCardParam(SharedCardQueryParam queryParam,int fromno,int pagesize,Double distince,double lon,double lat);
	
	public int updateSharedCard(SharedCard sharedCard);

	public int deleteShareCard(Integer cardid);
}
